﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyVocation.aspx.cs" Inherits="MyVocationSpace.MyVocation" %>

<%@ Register Src="Header.ascx" TagName="header" TagPrefix="uc" %>
<%@ Register Src="Footer.ascx" TagName="footer" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>..:: MY VocationSpace ::..</title>
    <link href="css/Default.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <link href="css/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">

        function SendConnectionAccept(id) {
            //alert(id);
            var xmlhttp;
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    //document.getElementById("loading").style.display = "none";

                }
            }
            xmlhttp.open("POST", "AJAX/ConnectionRequestAccept.aspx?IDConnect=" + id, true);
            xmlhttp.send();
            // document.getElementById("loading").style.display = "block";

        }

        function SendConnectionReject(id) {
            //alert(id);
            var xmlhttp;
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    //document.getElementById("loading").style.display = "none";

                }
            }
            xmlhttp.open("POST", "AJAX/ConnectionRequestReject.aspx?IDConnect=" + id, true);
            xmlhttp.send();
            // document.getElementById("loading").style.display = "block";
        }

        function SendMentorReq(id, spnsentMsg, spanMYMentor, lnkConnectSend) {
            var xmlhttp;
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    document.getElementById("loading").style.display = "none";
                    document.getElementById(spnsentMsg).innerHTML = "Mentor request has been sent.";
                    document.getElementById(spanMYMentor).style.display = "none";
                    document.getElementById(lnkConnectSend).style.display = "none";

                    //spn.innerHTML = xmlhttp.responseText;
                    //spn.style.display = "block";
                    //emailAdd.value = "YOUR EMAIL ADDRESS";
                }
            }
            xmlhttp.open("POST", "AJAX/MentorConnectRequestSend.aspx?IDMentor=" + id, true);
            xmlhttp.send();
            document.getElementById("loading").style.display = "block";
            //spn.style.display = "none";
        }



        function MentorRequestAccept(id) {
            var xmlhttp;
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    document.getElementById("loading").style.display = "none";
                    //spn.innerHTML = xmlhttp.responseText;
                    //spn.style.display = "block";
                    //emailAdd.value = "YOUR EMAIL ADDRESS";
                }
            }
            xmlhttp.open("POST", "AJAX/MentorRequestAccept.aspx?IDMentor=" + id, true);
            xmlhttp.send();
            document.getElementById("loading").style.display = "block";
            //spn.style.display = "none";
        }


        function MentorRequestReject(id) {
            var xmlhttp;
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    //document.getElementById("loading").style.display = "none";

                }
            }
            xmlhttp.open("POST", "AJAX/MentorRequestReject.aspx?IDMentor=" + id, true);
            xmlhttp.send();
            // document.getElementById("loading").style.display = "block";

        }
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <div>
            <uc:header ID="header" runat="server" />
        </div>
        <div id="content-wrapper">
            <center>
                <table>
                    <tr>
                        <td>
                            <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upMyAcc">
                                <ProgressTemplate>
                                    <div id="pageLoading">
                                        <center>
                                            <div style="color: #1C6F93; font-size: 14px; top: 50%; left: 50%;">
                                                Loading...
                                            </div>
                                        </center>
                                        <div id="transparentBg" class="transparentBg">
                                        </div>
                                    </div>
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                            <div class="Content">
                                <div style="width: 980px;">
                                    <div>
                                        <asp:UpdatePanel runat="server" ID="upMyAcc" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <table width="980px">
                                                    <tr>
                                                        <td style="width: 980px;">
                                                            <fieldset class="dark-border" style="width: 950px;">
                                                                <legend class="legendClass">My Connections</legend>
                                                                <div class="user-dashboard-new">
                                                                    <div class="head">
                                                                        All Connections
                                                                    </div>
                                                                    <%-- <asp:PlaceHolder ID="phMemebers" runat="server"></asp:PlaceHolder>--%>
                                                                    <table>
                                                                        <tr>
                                                                            <td style="width: 300px">
                                                                                <asp:DataList ID="dlMyConnection" DataKeyField="IDUser" RepeatDirection="Vertical"
                                                                                    runat="server" OnItemDataBound="dlMyConnection_ItemDataBound">
                                                                                    <ItemTemplate>
                                                                                        <table width="300px" border="0" class="light-border">
                                                                                            <tr>
                                                                                                <td colspan="2" align="center">
                                                                                                    <div>
                                                                                                        <img src="images/loading-small.jpg" id="loading" width="18" height="18" style="display: none;
                                                                                                            vertical-align: top" />
                                                                                                    </div>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td style="padding-right: 35px">
                                                                                                    <img src='<%# Bind("Photo")%>' runat="server" id="imgPerson" width="60" height="60"
                                                                                                        style="padding: 4px;" />
                                                                                                </td>
                                                                                                <td valign="top" align="left" style="width: 300px;">
                                                                                                    <table width="100%">
                                                                                                        <tr>
                                                                                                            <td align="left" style="font-size: 15px; font-family: Arial; font-weight: bold">
                                                                                                                <a href="ViewProfile.aspx?IDUser=<%#Eval("IDUser")%>"><span>
                                                                                                                    <%#Eval("Firstname")%></span>&nbsp;<span><%#Eval("Lastname")%></span></a>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="font-size: 13px; font-family: Arial; color: #000">
                                                                                                                <%#Eval("CurrentPosition")%><span style="padding: 0px 3px">at</span><span><%#Eval("Orgnization")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="font-size: 13px; font-family: Arial; color: Gray">
                                                                                                                <%#Eval("City")%><span>,</span><span style="padding-left: 3px"><%#Eval("CountryName")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td align="left">
                                                                                                    <span style="padding-left: 5px; color: #1C6F93"><a href="Connections.aspx?IDUser=<%#Eval("IDUser")%>">
                                                                                                        <asp:Label ID="lblConMyConnection" runat="server"></asp:Label> </span></a>
                                                                                                </td>
                                                                                                <td align="right" style="padding-right: 5px">
                                                                                                    <div>
                                                                                                        <div style="float: left">
                                                                                                            <span id="spanMYMentor" runat="server">
                                                                                                                <img src="~/Images/plusRed.jpg" id="imgPlus" runat="server" style="vertical-align: top"
                                                                                                                    height="13" width="13" />
                                                                                                            </span><span style="vertical-align: top; margin-left: -4px; color: #BE2021; font-weight: bold;">
                                                                                                                <asp:LinkButton ID="lnkConnectSend" Font-Size="12px" ForeColor="#BE2021" runat="server"
                                                                                                                    CommandArgument='<%#Eval("IDUser")%>' OnClick="lnkConnectSend_Click">Add as Mentor</asp:LinkButton></span>
                                                                                                            <input type="hidden" id="hiddenIDMentorStatus" runat="server" value='<%#Eval("IDMentorStatus")%>' />
                                                                                                            <input type="hidden" id="hiddenIDMentorFlag" runat="server" value='<%#Eval("IDMentorFlag")%>' /></span>
                                                                                                        </div>
                                                                                                        <div style="float: left; padding-left: 0px">
                                                                                                            <span><span id="spnsentMsg" style="color: #BE2021; font-family: Arial; font-weight: bold;
                                                                                                                font-size: 12px" runat="server"></span><span id="idsuccesstick" runat="server" visible="false"
                                                                                                                    style="text-align: left">
                                                                                                                    <img src="Images/Tick2.png" width="14" style="vertical-align: top" height="14" /></span>
                                                                                                                <span id="spanSuccessMsg" runat="server"></span></span>
                                                                                                        </div>
                                                                                                    </div>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </ItemTemplate>
                                                                                </asp:DataList>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <div>
                                                                                    <div style="width: 70px; text-align: left; float: left">
                                                                                        <asp:LinkButton ID="lbtnMyConnectionPre" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lbtnMyConnectionPre_Click">Pre</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                                        <asp:LinkButton ID="lbtnMyConnectionNext" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lbtnMyConnectionNext_Click">Next</asp:LinkButton></div>
                                                                                    <div style="width: 290px; vertical-align: top; text-align: right; float: left">
                                                                                        <asp:Label ID="Label1" runat="server" Text="" ForeColor="#545454" Font-Names="Arial"></asp:Label><br />
                                                                                        <asp:Label ID="Label2" runat="server" Text="" ForeColor="#545454" Font-Size="12px"></asp:Label></div>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                                <div class="sidebar-new">
                                                                    <div class="head">
                                                                        Pending Connections
                                                                    </div>
                                                                    <table>
                                                                        <tr>
                                                                            <td style="width: 300px;">
                                                                                <asp:DataList ID="dlPendingConnection" DataKeyField="IDUser" RepeatDirection="Vertical"
                                                                                    runat="server" OnItemDataBound="dlPendingConnection_ItemDataBound">
                                                                                    <ItemTemplate>
                                                                                        <table width="290px" border="0" class="light-border">
                                                                                            <tr>
                                                                                                <td style="padding-right: 40px">
                                                                                                    <img src='<%# Bind("Photo")%>' runat="server" id="imgPersonPend" width="60" height="60"
                                                                                                        style="padding: 4px;" />
                                                                                                </td>
                                                                                                <td valign="top" align="left" style="width: 290px;">
                                                                                                    <table width="100%">
                                                                                                        <tr>
                                                                                                            <td align="left" style="font-size: 15px; font-family: Arial; font-weight: bold">
                                                                                                                <a href="ViewProfile.aspx?IDUser=<%#Eval("IDUser")%>"><span>
                                                                                                                    <%#Eval("Firstname")%></span>&nbsp;<span><%#Eval("Lastname")%></span></a>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="font-size: 13px; font-family: Arial; color: #000">
                                                                                                                <%#Eval("CurrentPosition")%><span style="padding: 0px 3px">at</span><span><%#Eval("Orgnization")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="font-size: 13px; font-family: Arial; color: Gray">
                                                                                                                <%#Eval("City")%><span>,</span><span style="padding-left: 3px"><%#Eval("CountryName")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td align="left">
                                                                                                    <span style="padding: 4px; color: #1C6F93"><a href="Connections.aspx?IDUser=<%#Eval("IDUser")%>">
                                                                                                        <asp:Label ID="lblConPenConnection" runat="server"></asp:Label></a> </span>
                                                                                                </td>
                                                                                                <td align="right" style="padding-right: 10px">
                                                                                                    <asp:LinkButton ID="lnkPenConAccecpt" Font-Size="12px" CommandArgument='<%#Eval("IDUser")%>'
                                                                                                        Font-Names="Arial" ForeColor="Red" runat="server" OnClick="lnkPenConAccecpt_Click">Accept</asp:LinkButton>
                                                                                                    &nbsp;
                                                                                                    <asp:LinkButton ID="lnkPenConReject" Font-Size="12px" CommandArgument='<%#Eval("IDUser")%>'
                                                                                                        Font-Names="Arial" ForeColor="Red" runat="server" OnClick="lnkPenConReject_Click">Reject</asp:LinkButton>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </ItemTemplate>
                                                                                </asp:DataList>
                                                                            </td>
                                                                            <%--   <Triggers>
                                                                                    <asp:AsyncPostBackTrigger ControlID="lnkPenConAccecpt" EventName="Click" />
                                                                                </Triggers>--%>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <div>
                                                                                    <div style="width: 70px; text-align: left; float: left">
                                                                                        <asp:LinkButton ID="lbtnPendingConnPre" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lbtnPendingConnPre_Click">Pre</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                                        <asp:LinkButton ID="lbtnPendingConnNext" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lbtnPendingConnNext_Click">Next</asp:LinkButton></div>
                                                                                    <div style="width: 290px; vertical-align: top; text-align: right; float: left">
                                                                                        <asp:Label ID="Label3" runat="server" Text="" ForeColor="#545454" Font-Names="Arial"></asp:Label><br />
                                                                                        <asp:Label ID="Label4" runat="server" Text="" ForeColor="#545454" Font-Size="12px"></asp:Label></div>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                                <div class="sidebar-new">
                                                                    <div class="head">
                                                                        My Topics
                                                                    </div>
                                                                    <table>
                                                                        <tr>
                                                                            <td style="width: 310px">
                                                                                <asp:DataList ID="dlMyTopic" RepeatDirection="Vertical" runat="server">
                                                                                    <ItemTemplate>
                                                                                        <table width="295px" border="0" class="light-border">
                                                                                            <tr>
                                                                                                <td valign="top">
                                                                                                    <table width="295px">
                                                                                                        <tr>
                                                                                                            <td align="left" style="font-size: 15px; color: #000">
                                                                                                                <span class="spanTopicHead">Topic Name :</span> <a href="Blog.aspx?topicId=<%#Eval("IDUserTpoic")%> & IsMentor=<%#Eval("IsMentor")%>">
                                                                                                                    <span class="spanTopicItem" style="padding-left: 5px;">
                                                                                                                        <%#Eval("Name")%></span></a>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td align="left" style="font-size: 15px; color: #000">
                                                                                                                <span class="spanTopicHead">Description :</span> <span class="spanTopicItem" style="padding-left: 5px;
                                                                                                                    color: #1C6F93">
                                                                                                                    <%#Eval("Description")%></span><span style="color: #1C6F93">...</span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td align="left" style="font-size: 15px; color: #000">
                                                                                                                <span class="spanTopicHead">Created By :</span> <span class="spanTopicItem" style="padding-left: 5px;
                                                                                                                    color: #1C6F93">
                                                                                                                    <%#Eval("Firstname")%>
                                                                                                                    <%#Eval("Lastname")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td align="right" style="font-size: 14px; color: #000">
                                                                                                                <span class="spanTopicHead" style="padding: 0px">Posted Date :</span><span class="spanTopicItem"
                                                                                                                    style="padding-left: 5px; color: #1C6F93"><%#Eval("CreationDate")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </ItemTemplate>
                                                                                </asp:DataList>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <div>
                                                                                    <div style="width: 70px; text-align: left; float: left">
                                                                                        <asp:LinkButton ID="lnkPreTopic" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lnkPreTopic_Click">Pre</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                                        <asp:LinkButton ID="lnkNextTopic" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lnkNextTopic_Click">Next</asp:LinkButton></div>
                                                                                    <div style="width: 290px; vertical-align: top; text-align: right; float: left">
                                                                                        <asp:Label ID="Label11" runat="server" Text="" ForeColor="#545454" Font-Names="Arial"></asp:Label><br />
                                                                                        <asp:Label ID="Label12" runat="server" Text="" ForeColor="#545454" Font-Size="12px"></asp:Label></div>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </fieldset>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                                <div style="width: 980px;">
                                    <div>
                                        <table width="980px">
                                            <tr>
                                                <td style="width: 980px;">
                                                    <fieldset class="dark-border" style="width: 950px;">
                                                        <legend class="legendClass">Mentors</legend>
                                                        <div style="float: left; width: 635px;">
                                                            <div class="user-dashboard-new">
                                                                <div class="head">
                                                                    Mentors
                                                                </div>
                                                                <%-- <asp:PlaceHolder ID="phMemebers" runat="server"></asp:PlaceHolder>--%>
                                                                <table>
                                                                    <tr>
                                                                        <td style="width: 300px">
                                                                            <asp:DataList ID="dlMyMentor" RepeatDirection="Vertical" runat="server" OnItemDataBound="dlMyMentor_ItemDataBound"
                                                                                DataKeyField="IDUser">
                                                                                <ItemTemplate>
                                                                                    <table width="290px" border="0" class="light-border">
                                                                                        <tr>
                                                                                            <td style="padding-right: 40px">
                                                                                                <img src='<%# Bind("Photo")%>' runat="server" id="imgPersonMyMentor" width="60" height="60"
                                                                                                    style="padding: 4px;" />
                                                                                            </td>
                                                                                            <td valign="top" align="left" style="width: 330px;">
                                                                                                <table width="100%">
                                                                                                    <tr>
                                                                                                        <td align="left" style="font-size: 15px; font-family: Arial; font-weight: bold">
                                                                                                            <a href="ViewProfile.aspx?IDUser=<%#Eval("IDUser")%>"><span>
                                                                                                                <%#Eval("Firstname")%></span>&nbsp;<span><%#Eval("Lastname")%></span></a>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td style="font-size: 13px; font-family: Arial; color: #000">
                                                                                                            <%#Eval("CurrentPosition")%><span style="padding: 0px 3px">at</span><span><%#Eval("Orgnization")%></span>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td style="font-size: 13px; font-family: Arial; color: Gray">
                                                                                                            <%#Eval("City")%><span>,</span><span style="padding-left: 3px"><%#Eval("CountryName")%></span>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2" align="left">
                                                                                                <span style="padding-left: 5px; color: #1C6F93"><a href="Connections.aspx?IDUser=<%#Eval("IDUser")%>">
                                                                                                    <asp:Label ID="lblConMyMentor" runat="server"></asp:Label> </span></a>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </ItemTemplate>
                                                                            </asp:DataList>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <div>
                                                                                <div style="width: 70px; text-align: left; float: left">
                                                                                    <asp:LinkButton ID="lnkMyMentorPre" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                        Font-Bold="true" OnClick="lnkMyMentorPre_Click">Pre</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                                    <asp:LinkButton ID="lnkMyMentorNext" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                        Font-Bold="true" OnClick="lnkMyMentorNext_Click">Next</asp:LinkButton></div>
                                                                                <div style="width: 290px; vertical-align: top; text-align: right; float: left">
                                                                                    <asp:Label ID="Label5" runat="server" Text="" ForeColor="#545454" Font-Names="Arial"></asp:Label><br />
                                                                                    <asp:Label ID="Label6" runat="server" Text="" ForeColor="#545454" Font-Size="12px"></asp:Label></div>
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                            <div class="sidebar-new">
                                                                <div class="head">
                                                                    Mentor's Topics
                                                                </div>
                                                                <table>
                                                                    <tr>
                                                                        <td style="width: 300px;">
                                                                            <asp:DataList ID="dlMyMentorTopic" RepeatDirection="Vertical" runat="server" OnItemDataBound="dlMyMentorTopic_ItemDataBound"
                                                                                DataKeyField="IDUser">
                                                                                <ItemTemplate>
                                                                                    <table width="285px" border="0" class="light-border">
                                                                                        <tr>
                                                                                            <td valign="top">
                                                                                                <table width="285px">
                                                                                                    <tr>
                                                                                                        <td align="left" style="font-size: 15px; color: #000">
                                                                                                            <span class="spanTopicHead">Topic Name :</span> <a href="Blog.aspx?topicId=<%#Eval("IDUserTpoic")%> & IsMentor=<%#Eval("IsMentor")%>">
                                                                                                                <span class="spanTopicItem" style="padding-left: 5px;">
                                                                                                                    <%#Eval("Name")%></span></a>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td align="left" style="font-size: 15px; color: #000">
                                                                                                            <span class="spanTopicHead">Description :</span> <span class="spanTopicItem" style="padding-left: 5px;
                                                                                                                color: #1C6F93">
                                                                                                                <%#Eval("Description")%></span><span style="color: #1C6F93">...</span>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td align="left" style="font-size: 15px; color: #000">
                                                                                                            <span class="spanTopicHead">Created By :</span> <a href="ViewProfile.aspx?IDUser=<%#Eval("IDUser")%>">
                                                                                                                <span class="spanTopicItem" style="padding-left: 5px; color: #1C6F93">
                                                                                                                    <%#Eval("Firstname")%>
                                                                                                                    <%#Eval("Lastname")%></span></a>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td align="right" style="font-size: 14px; color: #000">
                                                                                                            <span class="spanTopicHead" style="padding: 0px">Posted Date :</span><span class="spanTopicItem"
                                                                                                                style="padding-left: 5px; color: #1C6F93"><%#Eval("CreationDate")%></span>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </ItemTemplate>
                                                                            </asp:DataList>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <div>
                                                                                <div style="width: 70px; text-align: left; float: left">
                                                                                    <asp:LinkButton ID="lnkMyMentorTopicPre" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                        Font-Bold="true" OnClick="lnkMyMentorTopicPre_Click">Pre</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                                    <asp:LinkButton ID="lnkMyMentorTopicNext" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                        Font-Bold="true" OnClick="lnkMyMentorTopicNext_Click">Next</asp:LinkButton></div>
                                                                                <div style="width: 290px; vertical-align: top; text-align: right; float: left">
                                                                                    <asp:Label ID="Label9" runat="server" Text="" ForeColor="#545454" Font-Names="Arial"></asp:Label><br />
                                                                                    <asp:Label ID="Label10" runat="server" Text="" ForeColor="#545454" Font-Size="12px"></asp:Label></div>
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                        </div>
                                                    </fieldset>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                                <div style="width: 980px;">
                                    <div>
                                        <asp:UpdatePanel ID="UpdatePanelMentees" UpdateMode="Always" runat="server">
                                            <ContentTemplate>
                                                <table width="980px">
                                                    <tr>
                                                        <td style="width: 980px;">
                                                            <fieldset class="dark-border" style="width: 950px;">
                                                                <legend class="legendClass">Mentees</legend>
                                                                <div class="user-dashboard-new">
                                                                    <div class="head">
                                                                        Mentees
                                                                    </div>
                                                                    <table>
                                                                        <tr>
                                                                            <td style="width: 310px;">
                                                                                <asp:DataList ID="dlMyMentis" DataKeyField="IDUser" RepeatDirection="Vertical" runat="server"
                                                                                    OnItemDataBound="dlMyMentis_ItemDataBound">
                                                                                    <ItemTemplate>
                                                                                        <table width="300px" border="0" class="light-border">
                                                                                            <tr>
                                                                                                <td style="padding-right: 40px">
                                                                                                    <img src='<%# Bind("Photo")%>' runat="server" id="imgPersonMyMentis" width="60" height="60"
                                                                                                        style="padding: 4px;" />
                                                                                                </td>
                                                                                                <td valign="top" align="left" style="width: 300px;">
                                                                                                    <table width="100%">
                                                                                                        <tr>
                                                                                                            <td align="left" style="font-size: 15px; font-family: Arial; font-weight: bold">
                                                                                                                <a href="ViewProfile.aspx?IDUser=<%#Eval("IDUser")%>"><span>
                                                                                                                    <%#Eval("Firstname")%></span>&nbsp;<span><%#Eval("Lastname")%></span></a>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="font-size: 13px; font-family: Arial; color: #000">
                                                                                                                <%#Eval("CurrentPosition")%><span style="padding: 0px 3px">at</span><span><%#Eval("Orgnization")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="font-size: 13px; font-family: Arial; color: Gray">
                                                                                                                <%#Eval("City")%><span>,</span><span style="padding-left: 3px"><%#Eval("CountryName")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td colspan="2" align="left">
                                                                                                    <span style="padding-left: 5px; color: #1C6F93"><a href="Connections.aspx?IDUser=<%#Eval("IDUser")%>">
                                                                                                        <asp:Label ID="lblMyMentis" runat="server"></asp:Label> </span></a>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </ItemTemplate>
                                                                                </asp:DataList>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <div>
                                                                                    <div style="width: 70px; text-align: left; float: left">
                                                                                        <asp:LinkButton ID="lnkMyMentisPre" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lnkMyMentisPre_Click">Pre</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                                        <asp:LinkButton ID="lnkMyMentisNext" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lnkMyMentisNext_Click">Next</asp:LinkButton></div>
                                                                                    <div style="width: 290px; vertical-align: top; text-align: right; float: left">
                                                                                        <asp:Label ID="Label13" runat="server" Text="" ForeColor="#545454" Font-Names="Arial"></asp:Label><br />
                                                                                        <asp:Label ID="Label14" runat="server" Text="" ForeColor="#545454" Font-Size="12px"></asp:Label></div>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                                <div class="sidebar-new">
                                                                    <div class="head">
                                                                        Pending Mentees
                                                                    </div>
                                                                    <table>
                                                                        <tr>
                                                                            <td style="width: 310px;">
                                                                                <asp:DataList ID="dlMyPendingMentis" RepeatDirection="Vertical" runat="server" DataKeyField="IDUser"
                                                                                    OnItemDataBound="dlMyPendingMentis_ItemDataBound">
                                                                                    <ItemTemplate>
                                                                                        <table width="300px" border="0" class="light-border">
                                                                                            <tr>
                                                                                                <td style="padding-right: 30px">
                                                                                                    <img src='<%# Bind("Photo")%>' runat="server" id="imgPersonPendMentis" width="60"
                                                                                                        height="60" style="padding: 4px;" />
                                                                                                </td>
                                                                                                <td valign="top" align="left" style="width: 300px;">
                                                                                                    <table width="100%">
                                                                                                        <tr>
                                                                                                            <td align="left" style="font-size: 15px; font-family: Arial; font-weight: bold">
                                                                                                                <a href="ViewProfile.aspx?IDUser=<%#Eval("IDUser")%>"><span>
                                                                                                                    <%#Eval("Firstname")%></span>&nbsp;<span><%#Eval("Lastname")%></span></a>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="font-size: 13px; font-family: Arial; color: #000">
                                                                                                                <%#Eval("CurrentPosition")%><span style="padding: 0px 3px">at</span><span><%#Eval("Orgnization")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="font-size: 13px; font-family: Arial; color: Gray">
                                                                                                                <%#Eval("City")%><span>,</span><span style="padding-left: 3px"><%#Eval("CountryName")%></span>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td align="left">
                                                                                                    <span style="padding-left: 4px; color: #1C6F93"><a href="Connections.aspx?IDUser=<%#Eval("IDUser")%>">
                                                                                                        <asp:Label ID="lblConMyPendingMentis" runat="server"></asp:Label> </span></a>
                                                                                                </td>
                                                                                                <td align="right" style="padding-right: 10px">
                                                                                                    <asp:LinkButton ID="lnkPendMentisAccecpt" Font-Size="12px" Font-Names="Arial" ForeColor="Red"
                                                                                                        CommandArgument='<%#Eval("IDUser")%>' runat="server" OnClick="lnkPendMentisAccecpt_Click">Accept</asp:LinkButton>
                                                                                                    &nbsp;
                                                                                                    <asp:LinkButton ID="lnkPendMentisReject" Font-Size="12px" Font-Names="Arial" ForeColor="Red"
                                                                                                        CommandArgument='<%#Eval("IDUser")%>' runat="server" OnClick="lnkPendMentisReject_Click">Reject</asp:LinkButton>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </ItemTemplate>
                                                                                </asp:DataList>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <div>
                                                                                    <div style="width: 70px; text-align: left; float: left">
                                                                                        <asp:LinkButton ID="lnkPendMentisPre" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lnkPendMentisPre_Click">Pre</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                                        <asp:LinkButton ID="lnkPendMentisNext" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                            Font-Bold="true" OnClick="lnkPendMentisNext_Click">Next</asp:LinkButton></div>
                                                                                    <div style="width: 290px; vertical-align: top; text-align: right; float: left">
                                                                                        <asp:Label ID="Label15" runat="server" Text="" ForeColor="#545454" Font-Names="Arial"></asp:Label><br />
                                                                                        <asp:Label ID="Label16" runat="server" Text="" ForeColor="#545454" Font-Size="12px"></asp:Label></div>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                                <div style="float: left; width: 300;">
                                                                    <div style="width: 300px" class="sidebar-new">
                                                                        <div class="head">
                                                                            Mentees Topics
                                                                        </div>
                                                                        <table>
                                                                            <tr>
                                                                                <td style="width: 300px">
                                                                                    <asp:DataList ID="dlMentisTopic" RepeatDirection="Vertical" runat="server">
                                                                                        <ItemTemplate>
                                                                                            <table width="285px" border="0" class="light-border">
                                                                                                <tr>
                                                                                                    <td valign="top">
                                                                                                        <table width="285px">
                                                                                                            <tr>
                                                                                                                <td align="left" style="font-size: 15px; color: #000">
                                                                                                                    <span class="spanTopicHead">Topic Name :</span> <a href="Blog.aspx?topicId=<%#Eval("IDUserTpoic")%> & IsMentor=<%#Eval("IsMentor")%>">
                                                                                                                        <span class="spanTopicItem" style="padding-left: 5px;">
                                                                                                                            <%#Eval("Name")%></span></a>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr>
                                                                                                                <td align="left" style="font-size: 15px; color: #000">
                                                                                                                    <span class="spanTopicHead">Description :</span> <span class="spanTopicItem" style="padding-left: 5px;
                                                                                                                        color: #1C6F93">
                                                                                                                        <%#Eval("Description")%></span><span style="color: #1C6F93">...</span>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr>
                                                                                                                <td align="left" style="font-size: 15px; color: #000">
                                                                                                                    <span class="spanTopicHead">Created By :</span> <a href="ViewProfile.aspx?IDUser=<%#Eval("IDUser")%>">
                                                                                                                        <span class="spanTopicItem" style="padding-left: 5px; color: #1C6F93">
                                                                                                                            <%#Eval("Firstname")%>
                                                                                                                            <%#Eval("Lastname")%></span></a>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr>
                                                                                                                <td align="right" style="font-size: 14px; color: #000">
                                                                                                                    <span class="spanTopicHead" style="padding: 0px">Posted Date :</span><span class="spanTopicItem"
                                                                                                                        style="padding-left: 5px; color: #1C6F93"><%#Eval("CreationDate")%></span>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </ItemTemplate>
                                                                                    </asp:DataList>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <div>
                                                                                        <div style="width: 70px; text-align: left; float: left">
                                                                                            <asp:LinkButton ID="lnkMentisTopicPre" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                                Font-Bold="true" OnClick="lnkMentisTopicPre_Click">Pre</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                                            <asp:LinkButton ID="lnkMentisTopicNext" runat="server" Font-Size="13px" ForeColor="#FD403E"
                                                                                                Font-Bold="true" OnClick="lnkMentisTopicNext_Click">Next</asp:LinkButton></div>
                                                                                        <div style="width: 290px; vertical-align: top; text-align: right; float: left">
                                                                                            <asp:Label ID="Label7" runat="server" Text="" ForeColor="#545454" Font-Names="Arial"></asp:Label><br />
                                                                                            <asp:Label ID="Label8" runat="server" Text="" ForeColor="#545454" Font-Size="12px"></asp:Label></div>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </fieldset>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                            <%--<Triggers>
                                                <asp:AsyncPostBackTrigger ControlID="lnkPendMentisAccecpt" EventName="Click" />
                                                <asp:AsyncPostBackTrigger ControlID="lnkPendMentisReject" EventName="Click" />
                                                </Triggers>--%>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </center>
        </div>
        <div style="clear: both">
        </div>
        <div>
            <uc1:footer runat="server" ID="footer"></uc1:footer>
        </div>
    </center>
    </form>
</body>
</html>
